<?php 
	require_once ("../../config.php");
?>
<html>
<head>
<title>ITControl Masisa</title>
<link rel="stylesheet" href="/itcontrol/com/visual/style.css">
</head>
	<body>
		<div id="div_navbar" align="right">
			<?php 	
				# Add div with Navbar
				echo navbar();
			?>
		</div>
		<div id="div_menu" align="left">
			<?php 		
				# Include div with Menu			
				echo menu();
			?>
		</div>
		<div id="div_form" align="left">
			<form id="form_main" name="form_main" method="post" action="login_edit_db.php">
				<?php 
					# Shows the data of login
					$id = $_GET["action"];

					$fields[0] = "id";
					$fields[1] = "name";
					$fields[2] = "lastname";
					$fields[3] = "login";
					$fields[4] = "email";
					
					$namefields[0] = "ID";
					$namefields[1] = "Nome";
					$namefields[2] = "Sobrenome";
					$namefields[3] = "Login";
					$namefields[4] = "Email";
					
					$where[0] = "id = '" .$id . "'";
					
					echo loadData("tb_login", "login", "edit", $fields, $namefields, $where);
					echo menuaction("login", "edit");
				?>
			</form>
		</div>
	</body>
</html>
